<?php
require_once("../../class2.php");
require_once(HEADERF);
require_once("./includes/require_all.php");
ramka("open");
?>
<script>
	function insertFromURL(url,from,into) {
		$(into).load(url+' '+from);
	};
</script>
<?php

echo "<div id='cattable'></div>";
?><script>insertFromURL('gts-catalog-exec.php', '#tabled', '#cattable');</script><?php

echo "<div class='forumheader'><center class='textBLACK'>--</center></div>";
echo "<center class='forumheader3'><a href='gts-add.php' class='button textWHITE'>Добави игра в каталога</a></center>";

if (in_array(USERNAME,$mods,true)) {
	$TOAPS=mysql_query("SELECT * FROM gcs_waiting ORDER BY Game ASC");
	echo "<div class='forumheader'>Чакат одобрение:</div><div class='forumheader3'>";
	While ($toap=mysql_fetch_array($TOAPS)) {
		echo "<div class='forumheader2' style='padding:0px;'><span class='forumheader'>✒</span> <a href='gts-add.php?gname=$toap[Prefix]' class='textGREEN'>$toap[Game]</a></div>";
	}
	echo "</div><center class='forumheader textBLACK'>--</center>";
}

ramka("close");
require_once(FOOTERF);
?>